#include "loginwindow.h"
#include "ui_loginwindow.h"

LoginWindow::LoginWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::LoginWindow)
{
    ui->setupUi(this);
}


LoginWindow::~LoginWindow()
{
    delete ui;
}

void LoginWindow::openLoginDialog() {

    this->show(); // 显示主窗口
}

void LoginWindow::showMainWindow() {

    this->show(); // 显示主窗口
}

void LoginWindow::on_loginButton_clicked()
{
    emit loginSignal(); //发送信号
    this->close(); //关闭登录窗口
}

